using System;
using System.Data;
using System.Data.SqlTypes;
using System.Data.SqlClient;

namespace DataEntity
{
    public class T_SalesAgent_Detal : DBInteractionBase
	{
		#region Class Member Declarations
			private SqlString		_salesAgent_Detal_Alone, _salesAgent_Detal_Developer;
			private SqlGuid			_salesAgent_Detal_ID, _salesAgent_Detal_MainID;
		#endregion



		public T_SalesAgent_Detal()
		{
			// Nothing for now.
		}






		#region Class Property Declarations
		public SqlGuid SalesAgent_Detal_ID
		{
			get
			{
				return _salesAgent_Detal_ID;
			}
			set
			{
				_salesAgent_Detal_ID = value;
			}
		}


		public SqlGuid SalesAgent_Detal_MainID
		{
			get
			{
				return _salesAgent_Detal_MainID;
			}
			set
			{
				SqlGuid salesAgent_Detal_MainIDTmp = (SqlGuid)value;
				if(salesAgent_Detal_MainIDTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("SalesAgent_Detal_MainID", "SalesAgent_Detal_MainID can't be NULL");
				}
				_salesAgent_Detal_MainID = value;
			}
		}


		public SqlString SalesAgent_Detal_Alone
		{
			get
			{
				return _salesAgent_Detal_Alone;
			}
			set
			{
				SqlString salesAgent_Detal_AloneTmp = (SqlString)value;
				if(salesAgent_Detal_AloneTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("SalesAgent_Detal_Alone", "SalesAgent_Detal_Alone can't be NULL");
				}
				_salesAgent_Detal_Alone = value;
			}
		}


		public SqlString SalesAgent_Detal_Developer
		{
			get
			{
				return _salesAgent_Detal_Developer;
			}
			set
			{
				SqlString salesAgent_Detal_DeveloperTmp = (SqlString)value;
				if(salesAgent_Detal_DeveloperTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("SalesAgent_Detal_Developer", "SalesAgent_Detal_Developer can't be NULL");
				}
				_salesAgent_Detal_Developer = value;
			}
		}
		#endregion
	}
}
